package com.dys.mybool;

/**
 * @className: com.dys.mybool.BoolTest
 * @description: 布尔类型
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/06/12 下午10:05
 */
public class BoolTest {

    public static void main(String[] args) {
        testBoolean();
    }

    public static void testBoolean() {
        // 声明布尔类型的变量
        boolean flag = true;
        System.out.println(flag);
        boolean flag1 = false;
        System.out.println(flag1);

        // 计算
        boolean flag2 = 1 == 2;
        System.out.println(flag2);
        boolean flag3 = 1 < 2;
        System.out.println(flag3);
    }
}
